<include file="public@storage"/>
<style>
    form {
        margin-top: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }

    .filter-option {
        background: white;
        color: black;
    }
</style>

</head>
<body>

<div>
    <form class="form-horizontal table" id="form" onsubmit="return checkStorage();"  action="{:url('storage/Storage/addStorage')}" method="post">
        <div class="panel panel-primary">
            <div class="panel-heading">
                <h3 class="panel-title">仓库信息</h3>
            </div>
            <div class="panel-body">
                <div class="form-group">
                    <label id="a" class="col-md-2 control-label" for="name">仓库名：</label>
                    <div class="col-md-2">
                        <input type="text" name="name" id="name" class="form-control" placeholder="必填项">
                        <span id="nameError" style="color: red"></span>
                    </div>

                    <label class="col-md-2 control-label" for="address">地址：</label>
                    <div class="col-md-2">
                        <input type="text" name="address" id="address" class="form-control" placeholder="必填项">
                        <span id="addressError" style="color: red"></span>
                    </div>

                    <label class="col-md-2 control-label" for="ip_address">IP地址：</label>
                    <div class="col-md-2">
                        <input type="text" name="ip_address" id="ip_address" class="form-control" placeholder="必填项">
                        <span id="ip_addressError" style="color: red"></span>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-md-2 control-label" for="phone">电话：</label>
                    <div class="col-md-2">
                        <input type="text" name="phone" id="phone" class="form-control" placeholder="必填项">
                        <span id="phoneError" style="color: red"></span>
                    </div>

                    <div class="col-md-2 control-label">
                        <label for="supplier">委外厂商：</label>
                    </div>
                    <div class="col-md-2">
                        <select id="supplier" name="supplier" class="selectpicker  form-control" title="请选择对应厂商(非必选)" data-live-search="true">
                            <option value=""></option>
                            <volist name="supplier" id="vo">
                                <option value="{$vo.uuid}">{$vo.company_name}</option>
                            </volist>
                        </select>
                    </div>

                </div>

                <div class="form-group text-center">
                    <button type="submit" class="mui-btn mui-btn--raised mui-btn--primary" id="submit">添加</button>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <button type="button" class="mui-btn mui-btn--raised mui-btn--primary" onclick="history.go(-1)">取消</button>
                </div>
            </div>
        </div>
    </form>
</div>
</body>
<script type="text/javascript" src="__STATIC__/storage/js/storage/check.js"></script>
</html>